package cc.example.mybatislike.db.zeus;

import cc.example.mybatislike.db.zeus.entity.ModelFile;
import cc.example.mybatislike.db.zeus.entity.ModelFile;
import cc.example.mybatislike.db.zeus.mapper.ModelFileMapper;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class ModelFileRepository {

  @Autowired
  private ModelFileMapper mapper;

  public List<ModelFile> getFiles() {
    return mapper.selectByExample(null);
  }

  public void addFile(ModelFile file) {
    mapper.insertSelective(file);
  }

}
